class PhotosController < ApplicationController
  def show
  	@photo = Photo.find(params[:id])
  	send_data(@photo.data, :file_name => @photo.name, :type => @photo.content_type, :disposition => "inline")
  end
end
